<nz-spin [nzSpinning]="isPending" [nzTip]="'正在执行操作...'">
<div style=" margin-top:10px;">
  <div style=" width:200px;margin:10px auto;">
    <nz-radio-group [(ngModel)]="isPwdEdit">
      <label nz-radio-button nzValue="0">基本信息</label>
      <label nz-radio-button nzValue="1">用户密码</label>
    </nz-radio-group>
  </div>
  <form nz-form [formGroup]="validateForm">
    <nz-form-item *ngIf="isPwdEdit=='0'">
      <nz-form-label [nzSpan]="6">头像</nz-form-label>
      <nz-form-control [nzSpan]="14">
        <nz-upload class="avatar-uploader" [nzName]="'photoUrl'"  [nzShowUploadList]="false" [nzBeforeUpload]="beforeImgUpload"
          [nzCustomRequest]="bindingForm" [id]="'photoUrl'">
          <i *ngIf="!focusEntity['photoUrl']" class="anticon anticon-plus avatar-uploader-trigger"></i>
          <img *ngIf="focusEntity['photoUrl']" class="avatar" [src]="(isHaveImage('photoUrl')?httpService.IP_PORT:'')+focusEntity['photoUrl']">
        </nz-upload>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item *ngIf="isPwdEdit=='0'">
      <nz-form-label [nzSpan]="6" >用户名</nz-form-label>
      <nz-form-control [nzSpan]="14">
          {{userName}}
      </nz-form-control>
    </nz-form-item>
    <nz-form-item *ngIf="isPwdEdit=='0'">
      <nz-form-label [nzSpan]="6" >姓名</nz-form-label>
      <nz-form-control [nzSpan]="14">
        <input nz-input formControlName="personName" [id]="'personName'"/>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item *ngIf="isPwdEdit=='0'">
      <nz-form-label [nzSpan]="6" >电话</nz-form-label>
      <nz-form-control [nzSpan]="14">
        <input nz-input formControlName="phoneNumber" [id]="'phoneNumber'"/>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item *ngIf="isPwdEdit=='1'">
      <nz-form-label [nzSpan]="6">原密码</nz-form-label>
      <nz-form-control [nzSpan]="14">
        <input nz-input type="password" formControlName="userPwd" [id]="'userPwd'"/>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item *ngIf="isPwdEdit=='1'">
      <nz-form-label [nzSpan]="6" >新密码</nz-form-label>
      <nz-form-control [nzSpan]="14">
        <input nz-input type="password" formControlName="userPwd1" [id]="'userPwd1'"/>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item *ngIf="isPwdEdit=='1'">
      <nz-form-label [nzSpan]="6" >确认新密码</nz-form-label>
      <nz-form-control [nzSpan]="14">
        <input nz-input type="password" formControlName="userPwd2" [id]="'userPwd2'"/>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item>
      <nz-form-control [nzSpan]="24">
        <div style="width:200px;margin:auto">
          <button nz-button nzType="primary" (click)="saveInfo()">保存</button>
          <button nz-button (click)="goBack()">返回</button>
        </div>
      </nz-form-control>
    </nz-form-item>
  </form>
</div>
</nz-spin>